/*
 * SunspotsDeployProc.java
 *
 * Created on August 1, 2007, 6:14 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package InterMessages;

import java.util.*;
/**
 *
 * @author Fogsus
 */
public class SunspotsDeployStatus {
    
    /** Creates a new instance of SunspotsDeployProc */
    public ArrayList<String> deployStatus;
    public SunspotsDeployStatus() {
        deployStatus = new ArrayList<String>();
    }
    public synchronized void updateStatus (String ent) {
        String newLine = ent;
        this.deployStatus.add(newLine);
    }
    public synchronized int getEntriesNumber () {
        //String newLine = ent;
        return this.deployStatus.size();//.add(newLine);
    }
    
    public synchronized String getLastEntry () {
        //String newLine = ent;
        return this.deployStatus.get(this.deployStatus.size()-1);//.add(newLine);
    }
}
